package com.ffs.context.pipe;

import com.ffs.context.Pipeline;
import com.ffs.context.handler.login.AccountHandler;
import com.ffs.context.handler.login.PasswordHandler;
import com.ffs.context.handler.login.TokenHandler;

/**
 * 登录管道(服务启动必须先进行初始化调用)
 * @author ffs80 created 2021/7/3
 */
public class LoginPipe extends Pipeline {

    private final static Pipeline INSTANCE = new LoginPipe();

    public static Pipeline getInstance(){
        return INSTANCE;
    }

    /**
     * 初始化
     */
    public void init(){
        addLast(new AccountHandler());
        addLast(new TokenHandler());
        addLast(new PasswordHandler());
    }
}
